import {api} from "../boot/axios.js";
let loginUrl = "/login";
let registerUrl = "/register";
export const loginApi = async (data) => {
  try {
    let res = await api.post(
      loginUrl,
      data
    )
    return res
  } catch (error) {
    return error
  }
}
export const registerApi = async (data) => {
  let res = await api.post(
    registerUrl,
    data
  )
  return res
}
// const registerApi = data => {
//     return api.post({
//         url: '/register',
//         data
//     })
// }
